package com.woniuxy.mesboot.service.impl;

import com.woniuxy.mesboot.entity.MatOut;
import com.woniuxy.mesboot.mapper.MatOutMapper;
import com.woniuxy.mesboot.service.MatOutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MatOutServiceImpl implements MatOutService {
    @Autowired
    private MatOutMapper matOutMapper;
    @Override
    public List<MatOut> selectAll() {
        return matOutMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return matOutMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MatOut record) {
        return matOutMapper.insert(record);
    }

    @Override
    public int insertSelective(MatOut record) {
        return matOutMapper.insertSelective(record);
    }

    @Override
    public MatOut selectByPrimaryKey(Long id) {
        return matOutMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MatOut record) {
        return matOutMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MatOut record) {
        return matOutMapper.updateByPrimaryKey(record);
    }
}
